#pragma once

#include <QWidget>
#include "ui_TalkWindowItem.h"

class TalkWindowItem : public QWidget
{
	Q_OBJECT

public:
	TalkWindowItem(QWidget *parent = Q_NULLPTR);
	~TalkWindowItem();

private:
	void init();

public:
	void setHeadPixmap(const QString& headPath);
	void setMsgText(const QString& msgText);

protected:
	virtual void enterEvent(QEvent *event) override;
	virtual void leaveEvent(QEvent *event) override;

signals:
	void signalCloseBtnClicked();

private:
	Ui::TalkWindowItem ui;
};
